package com.cn.boot.student.mapper;

import com.cn.boot.student.entity.DispatchRecordEntity;
import com.cn.boot.student.entity.TeamUserRelationEntity;

import java.util.List;

/***
 * 小组调度记录数据持久层
 * @author luosir
 */
public interface DispatchRecordMapper {
    /***
     * 得到记录总数
     * @param dispatchRecordEntity
     * @return
     */
    Integer getCount(DispatchRecordEntity dispatchRecordEntity);

    /***
     * 得到调度记录列表
     * @param dispatchRecordEntity
     * @return
     */
    List<DispatchRecordEntity> findAll(DispatchRecordEntity dispatchRecordEntity);

    /***
     * 删除调度记录
     * @param id
     * @return
     */
    Integer del(Integer id);

    /**
     * 添加调度记录(批量)
     * @param teamUserRelationEntity
     * @return
     */
    Integer adds(TeamUserRelationEntity teamUserRelationEntity);

    Integer dels(TeamUserRelationEntity entity);
}
